home *** CD-ROM | disk | FTP | other *** search
- KEYMOD.EXE March 1992 Page 252
- PC/Computing
-
- KEYMOD is a batch file and short program to modify
- assignment of keys on your keyboard.
-
- First, check that ANSI.SYS is in your DOS directory or elsewhere on
- your hard disk, and then ensure that it's listed as a device in your
- CONFIG.SYS file. Open CONFIG.SYS in DOS 5.0's EDIT or a similar text
- editor and look for a line such as DEVICE=C:\DOS\ANSI.SYS (or one
- containing a different path to the same file). If it's missing, add
- it and then reboot to tload the driver into RAM. It will take up about
- 4.1k of conventional memory.
-
- Next, create a special subdirectory called SETKEY under your batch
- file or utilities subdirectory to contain KEY.COM and ANSIKEY.BAT.
- Change to the appropriate parent directory and enter MD SETKEY. Press
- ENTER, and then type CD SETKEY to take you to that directory.
-
- Next, create two batch files to take you to the SETKEY directory and
- start the process. This extra step is necessary because ANSIKEY
- creates a file that enables you to reset your keys and always puts
- this file in the subdirectory from which you launch the batch file.
- To avoid littering your hard disk with reset files, you must issue
- the batch file from the same subdirectory every time, and a second
- batch file is the easiest way to do it.
-
- With this set of files and programs, you can reassign functions
- between keys and assign text to a given key. You should be able
- to change any single-digit ASCII key, including numbers, letters,
- Shift- and Ctrl-key combinations, the number pad's direction keys
- (arrows, Home, End, PageUp, PageDn), Ins, Del, Backspace, Enter
- (try this carefully), Ctrl-Enter, and most punctuation keys.
- The exceptions are the gray keys mentioned in the file's REM
- lines.
-
- To assign a string to a key, type SETKEY followed by a string up
- to nine words long. This technique is useful for assigning hard-to-
- type commands to a single key. Attaching reminders to keys is
- another use of the technique. Let's say you want to assign the
- phone number of your systems manager or resident DOS helper to the
- F1 key. Enter the following line:
-
- SETKEY Call 7021 for help
-
- When you press Enter, the batch file will prompt you to press the
- key. For this example, press F1 and then press it again when
- prompted for a double-check. When you're assigning a string to a
- key, the batch file will offer to put a carriage return at the
- end of the line. This is handy if you're assigning a command such
- as DIR /P /W, but in this case, press N. You'll be given the option
- to avoid overwriting the RESET file, to which you should answer Y.
- Now, whenever you press F1, you'll see the string you've assigned
- to it.
-
- ANSIKEY creates a file called RESET.BAT in its subdirectory whenever
- you reassign keys. Use the DOS TYPE command to check it out.
-
- Enter RESET to restore F1, and after you see the reset message,
- press F1 to verify.
-
-
-